package cn.jilian.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import cn.jilian.data.util.ConfigConstants;

@Entity
@Table(name="bt_link")
public class Link {
	
	public static final Integer ROLE_LINK_RANK=210608;
	
	public static final Long META_ROLE_USER=539702L;

	@Id
	@GeneratedValue(generator="seq_sid")
	@GenericGenerator(name = "seq_sid", strategy =ConfigConstants.STD_SID_SEQ,parameters = {@Parameter(name = "seq_name", value = "seq_sid")})
	@Column(name="sid")
	private Long id;
	
	private Long source;
	
	private Long relate;
	
	private Integer rank;
	
	private Long meta;
	
	private Integer flag=1;
	
	private Date tims;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSource() {
		return source;
	}

	public void setSource(Long source) {
		this.source = source;
	}

	public Long getRelate() {
		return relate;
	}

	public void setRelate(Long relate) {
		this.relate = relate;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Long getMeta() {
		return meta;
	}

	public void setMeta(Long meta) {
		this.meta = meta;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Date getTims() {
		return tims;
	}

	public void setTims(Date tims) {
		this.tims = tims;
	}
	
	
}
